/*
 * These files are distributed under the terms of the GNU GPLv2, the GNU General
 * Public version 2. See LICENSE.txt
 */
package fileCommodore.view;

import javax.swing.*;

import fileCommodore.model.*;

/**
 * @author nado18@gmail.com, on Jul 22, 2007
 */
public class MyIconProvider extends MyLabelProvider<FileRowItem>
{
	public MyIconProvider(MyTableModel<FileRowItem> model)
	{
		super( model );
	}
	
	/*
	 * (non-Javadoc)
	 * 
	 * @see view.MyLabelProvider#format(javax.swing.JLabel,
	 *      java.lang.Comparable)
	 */
	@Override
	public void format( JLabel label, FileRowItem item )
	{
		if (null != label && null != item)
		// TODO: Determine FilePane.reload can be implemented such as to not
		// need this check
		{
			label.setIcon( item.getIcon() );
		}
	}
	
}
